package com.thjk.bdf.service;

import java.util.List;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.thjk.bdf.common.entity.ApplyOrder;
import com.thjk.bdf.common.page.TableDataInfo;

/**
 * 
 * @创建日期： 2019年11月1日
 * @author 束凯
 * @Description：订单信息处理类(增删改查)
 */
@FeignClient(value ="bdf-service"/*,path="/bdfservice"*/)
public interface OrderService {
	/**
	 * 
	 * @Description: 新增订单
	 * @params:CreditApplyInfo 订单信息
	 */
	@LoadBalanced
	@RequestMapping(value="order/insertApplyOrder",method=RequestMethod.POST)
	public int insertApplyOrder(@RequestBody ApplyOrder applyOrder);
	
	/**
	 * 
	 * @Description: 更新订单信息
	 * @params:参宿说明
	 */
	@RequestMapping(value="order/updateApplyOrder",method=RequestMethod.POST)
	public int updateApplyOrder(@RequestBody ApplyOrder applyOrder);
	
	/**
	 * 
	 * @Description: 查询订单信息
	 * @params:参宿说明
	 */
	@RequestMapping(value="order/selectOrder",method=RequestMethod.GET)
	public ApplyOrder selectOrder(@RequestBody ApplyOrder applyOrder);
	
	/**
	 * 
	 * @Description: 分页查询
	 * @params:参宿说明
	 */
	@RequestMapping(value="order/selectByPage",method=RequestMethod.POST)
	public TableDataInfo selectByPage(@RequestBody ApplyOrder applyOrder);
	
	/**
	 * 
	 * @Description: 订单查询
	 * @params:参宿说明
	 */
	@RequestMapping(value="order/selectByPhone",method=RequestMethod.POST)
	public List<ApplyOrder> selectByPhone(@RequestParam("registerPhone") String  registerPhone);
	
	

}
